package IOException;

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;

public class BufferedReaderExample2 {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new FileReader("file2.txt"));
		
		String str;
		while(true) {
			str = br.readLine();
			if(str == null) {
				break;
			}
			System.out.print(str);
		}
	}

}
